package main

import "fmt"

type Person struct {
	name string
	sex  byte
	age  int
}

func (p *Person) SetInfoToTom(n string, s byte, a int) {
	p.name = n
	p.sex = s
	p.age = a
}
func (tmp Person) PrintInfo() {
	fmt.Println("tmp=", tmp)
}
func main() {
	//p := Person("hellen", 'f', 43)
	//p.PrintInfo()
	var p2 Person
	(&p2).SetInfoToTom("tom", 'f', 59)
	p2.PrintInfo()
}
